﻿using System;

namespace MediatorSample.Classes
{
    /// <summary>
    /// Data items necessary to register for mediator notifications
    /// </summary>
    [Serializable]
    public class RegisterParameter
    {
        private readonly string token;

        private readonly string instanceId;

        private readonly Action<object> action;

        public RegisterParameter(string token, string instanceId, Action<object> action)
        {
            this.token = token;
            this.instanceId = instanceId;
            this.action = action;
        }

        public string Token
        {
            get
            {
                return this.token;
            }
        }

        public string InstanceId
        {
            get
            {
                return this.instanceId;
            }
        }

        public Action<object> Action
        {
            get
            {
                return this.action;
            }
        }
    }
}
